package com.sctvcloud.zhaohua_sd.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.ui.util.IListData;
import com.ruihang.generalibrary.utils.IDataDate;
import com.sctvcloud.zhaohua_sd.ui.util.IListShowData;

import java.io.Serializable;
import java.sql.Date;

/**
 * Created by Liuyu on 2018/8/17.
 */

public class ConvertRecordBean implements Serializable, IListShowData, IDataDate {
    private static final long serialVersionUID = -7577670305872656315L;

    /**
     * 商品id
     */
    private String commId;
    /**
     * 商品名称
     */
    private String commName;
    /**
     * 消耗的积分值
     */
    private int integral;
    /**
     * 兑换记录id
     */
    private String orderId;
    /**
     * 消耗的rmb 单位分
     */
    private int price;
    /**
     * 兑换时间
     */
    private String time;

    private Date timeDate;

    private int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCommId() {
        return commId;
    }

    public void setCommId(String commId) {
        this.commId = commId;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getTime() {
        return time;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String getDataTitle() {
        return commName;
    }

    @Override
    public String getDataImg() {
        return null;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return orderId;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return 0;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public Date getDataDate() {
        return timeDate;
    }

    @Override
    public void setDataDate(Date date) {
        timeDate = date;
    }

    @NonNull
    @Override
    public String getDatePattern() {
        return "yyyy/MM/dd HH:mm:ss";
    }

    @Override
    public String getDateString() {
        return time;
    }
}
